feat(server): echo request headers in response over REST transport#1509
feat(server): echo request headers in response over REST transport#1509
Conversation
parthea
left a comment
There was a problem hiding this comment.
LGTM. I tested this locally using the code in googleapis/gapic-generator-python#1999
|
FWIW I don't think @vchudnov-g had landed on a header prefix yet, at least the suggestions in the document he wrote are different than what is implemented here... |
|
At the time of merging this PR it seemed like we had settled on a prefix based on the comment thread in the document. |
You're right, @vchudnov-g had settled on that! |
|
One thought that occurs to me: maybe for the same reasons we have prefixes in the echoed http headers, we should also have them in the gRPC trailers that echo the gRPC request headers? Thoughts? |
Yeah it probably makes sense to do, but let's make sure we blast it out in release notes for those that already have trailer tests. |
Towards #1493, but note that this will occur for all Showcase services, not just
Echo.This can be verified manually on the shell via:
and works even for error responses: